﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities
{
    class MongoUtil
    {
        public static string GetDBCollectionName(Type type)
        {
            if (type == null) return "Listesi";

            string entityName = type.Name;
            entityName = entityName.Replace("Entity", "");
            return string.Format("{0}Listesi", entityName);
        }
    }
}
